import Vue from 'vue'
import Router from 'vue-router'
//底部路由
import footer from '@/components/footer'
//登陆_主页
import login from '@/components/login/login'
//登陆
import login_land from '@/components/login/login_land'
import forgot_password from '@/components/login/forgot_password'
//注册
import register from '@/components/login/register'
import weixin from '@/components/login/weixin'
import about_class from '@/children/template/about_class.vue'
import collage from '@/children/template/collage.vue'
import main from '@/children/template/main.vue'
import main_coach from '@/children/main_center/main_coach'
import main_voucher from '@/children/main_center/main_voucher'
import main_course from '@/children/main_center/main_course'
import search_coach from '@/children/main_center/search_coach'
import doudle_routing from '@/children/main_center/doudle_routing'
import doudle_total from '@/children/main_center/doudle_total'
import doudle_pay from '@/children/main_center/doudle_pay'
import doudle_air_complete from '@/children/main_center/doudle_air_complete'
import doudle_already_complete from '@/children/main_center/doudle_already_complete'
import doudle_assess from '@/children/main_center/doudle_assess'
import doudle from '@/children/main_center/doudle'
import become_coach from '@/children/main_center/become_coach'
import shopping_cart from '@/children/main_center/shopping_cart'
import invitation_code from '@/children/main_center/invitation_code'
import contact_service from '@/children/main_center/contact_service'
import about_us from '@/children/main_center/about_us'
import main_money from '@/children/main_center/main_money'
import edit_profile from '@/children/main_center/edit_profile'
import select_address from '@/children/main_center/select_address'
import new_address from '@/children/main_center/new_address'
import edit_address from '@/children/main_center/edit_address'
import agree_ment from '@/children/main_center/agree_ment'
import agree_respon from '@/children/main_center/agree_respon'
import search_address from '@/children/main_center/search_address'
import search_address_two from '@/children/main_center/search_address_two'
import appointment_coach from '@/children/main_center/appointment_coach'
import about_coach from '@/children/about_coach/about_coach'
import reset_password from '@/components/login/reset_password'
import more_photo from '@/children/about_coach/more_photo'
import video from '@/children/about_coach/video'
import login_qq from '@/components/login/login_qq'
import shop_cart from '@/children/about_coach/shop_cart'
import my_order from '@/children/about_coach/my_order'
import pay from '@/children/about_coach/pay'
import pay_order from '@/children/about_coach/pay_order'
import shop_del from '@/children/about_coach/shop_del'
import coupon from '@/children/about_coach/coupon'
import coupon_workability from '@/children/about_coach/coupon_workability'
import coupon_already from '@/children/about_coach/coupon_already'
import coupon_overdue from '@/children/about_coach/coupon_overdue'
import consumer_details from '@/children/main_center/consumer_details'
import order_details from '@/children/main_center/order_details'
import Immediate_evaluation from '@/children/main_center/Immediate_evaluation'
import all_evaluation from '@/children/about_coach/all_evaluation'
import code from '@/children/about_coach/code'
import weixinPay from '@/components/login/weixinPay'
Vue.use(Router)

export default new Router({
	routes: [{
			path: '/login',
			component: login
		},
		{
			path: '/',
			component: about_class
		},
		{
			path: '/footer',

			component: footer
		},
			{
			path: '/weixinPay',

			component: weixinPay
		},
		{
			path: '/weixin',

			component: weixin
		},
    {
      path: '/forgot_password',
      component: forgot_password
    },
		{
			path: "/about_class",

			component: about_class
		},
		{
			path: "/collage",
			component: collage
		},
		{
			path: "/main",
			component: main
		},
		{
			path: "/",
			redirect: "/about_class"
		},
		{
			path: "/main_coach",
			component: main_coach
		},
		{
			path: "/main_voucher",
			component: main_voucher
		},
		{
			path: "/main_course",
			component: main_course
		},
		{
			path: "/search_coach",
			component: search_coach
		},
		{
			path: "/doudle_routing",
			component: doudle_routing,
			children: [{
					path: "/doudle_total",
					component: doudle_total

				},
				{
					path: "/doudle_pay",
					component: doudle_pay
				},
				{
					path: "/doudle_air_complete",
					component: doudle_air_complete
				},
				{
					path: "/doudle_already_complete",
					component: doudle_already_complete
				},
				{
					path: "/doudle_assess",
					component: doudle_assess
				},
				{
					path: "/",
					redirect: "/doudle_total"
				},

			]
		},
		{
			path: "/doudle",
			component: doudle
		},
		{
			path: "/become_coach",
			component: become_coach
		},
		{
			path: "/shopping_cart",
			component: shopping_cart
		},
		{
			path: "/invitation_code",
			component: invitation_code
		},
		{
			path: "/contact_service",
			component: contact_service
		},
		{
			path: "/about_us",
			component: about_us,
			children: [{
					path: "/agree_ment",
					component: agree_ment
				},
				{
					path: "/",
					redirect: "/agree_ment"
				},
				{
					path: "/agree_respon",
					component: agree_respon
				},
			]
		},
		{
			path: "/main_money",
			component: main_money
		},
		{
			path: "/edit_profile",
			component: edit_profile
		},
		{
			path: "/select_address",
			component: select_address
		},
		{
			path: "/new_address",
			component: new_address
		},
		{
			path: "/edit_address",
			component: edit_address
		},
		{
			path: "/search_address",
			component: search_address
		},
		{
			path: "/search_address_two",
			component: search_address_two
		},
		{
			path: "/appointment_coach",
			component: appointment_coach
		},
		{
			path: "/login_land",
			component: login_land
		},
		{
			path: "/register",
			component: register
		},
		{
			path: "/about_coach",
			component: about_coach
		},

		{
			path: "/reset_password",
			component: reset_password
		},

		{
			path: "/more_photo",
			component: more_photo,
		},
		{
			path: "/video",
			component: video,
		},
		{
			path: "/login_qq",
			component: login_qq,
		},
		{
			path: "/shop_cart",
			component: shop_cart,
		},
		{
			path: "/my_order",
			component: my_order,
		},
		{
			path: "/pay",
			component: pay,
		},
		{
			path: "/pay_order",
			component: pay_order,
		},
		{
			path: "/shop_del",
			component: shop_del,
		},
		{
			path: "/coupon",
			component: coupon,
			children: [{
					path: "/coupon_workability",
					component: coupon_workability,
				},
				{
					path: "/",
					redirect: "/coupon_workability"
				},
				{
					path: "/coupon_already",
					component: coupon_already,
				},
				{
					path: "/coupon_overdue",
					component: coupon_overdue,
				},
			]
		},

		{
			path: "/consumer_details",
			component: consumer_details,
		},
		{
			path: "/order_details",
			component: order_details,
		},
		{
			path: "/Immediate_evaluation",
			component: Immediate_evaluation,
		},
		{
			path:"/all_evaluation",
			component:all_evaluation
		},
		{
			path:"/code",
			component:code
		}

	]
})
